package com.far.game.xiuzhen.common.database.entity.Vo.admin;



import com.far.game.xiuzhen.common.database.entity.SkillBufs;
import com.far.game.xiuzhen.common.enums.game.buf.*;
import com.far.game.xiuzhen.common.utils.EnumUtil;

public class SkillBufVo extends SkillBufs {

    //buf出招顺序
    private String orderIdxStr;
    //"技能特性
    private String bufTypeStr;
    //执行结果
    private String resultTypeStr;
    //变化类型
    private String changeTypeStr;
//    //变化值
//    private String changeValStr;
    //变化值变化类型
    private String changeValTypeStr;
    //作用范围
    private String findDomainStr;
    //作用时 属性检测
    private String findPropStr;
//    //作用周期
//    private String cycleStr;
    //作用周期类型
    private String cycleTypeStr;

    private String refTargetStr;

    public String getRefTargetStr() {
        return refTargetStr;
    }

    public void setRefTargetStr(String refTargetStr) {
        this.refTargetStr = refTargetStr;
    }


    public String getOrderIdxStr() {
        return orderIdxStr;
    }

    public void setOrderIdxStr(String orderIdxStr) {
        this.orderIdxStr = orderIdxStr;
    }

    public String getBufTypeStr() {
        return bufTypeStr;
    }

    public void setBufTypeStr(String bufTypeStr) {
        this.bufTypeStr = bufTypeStr;
    }

    public String getResultTypeStr() {
        return resultTypeStr;
    }

    public void setResultTypeStr(String resultTypeStr) {
        this.resultTypeStr = resultTypeStr;
    }

    public String getChangeTypeStr() {
        return changeTypeStr;
    }

    public void setChangeTypeStr(String changeTypeStr) {
        this.changeTypeStr = changeTypeStr;
    }

//    public String getChangeValStr() {
//        return changeValStr;
//    }
//
//    public void setChangeValStr(String changeValStr) {
//        this.changeValStr = changeValStr;
//    }

    public String getChangeValTypeStr() {
        return changeValTypeStr;
    }

    public void setChangeValTypeStr(String changeValTypeStr) {
        this.changeValTypeStr = changeValTypeStr;
    }

    public String getFindDomainStr() {
        return findDomainStr;
    }

    public void setFindDomainStr(String findDomainStr) {
        this.findDomainStr = findDomainStr;
    }

    public String getFindPropStr() {
        return findPropStr;
    }

    public void setFindPropStr(String findPropStr) {
        this.findPropStr = findPropStr;
    }
//
//    public String getCycleStr() {
//        return cycleStr;
//    }
//
//    public void setCycleStr(String cycleStr) {
//        this.cycleStr = cycleStr;
//    }

    public String getCycleTypeStr() {
        return cycleTypeStr;
    }

    public void setCycleTypeStr(String cycleTypeStr) {
        this.cycleTypeStr = cycleTypeStr;
    }

    public SkillBufVo bulid() {
        this.setBufTypeStr(EnumUtil.nameOfVal(BufTypeEnums.values(),getBufType()));
        this.setResultTypeStr(EnumUtil.nameOfVal(ResultTypeEnum.values(),getResultType()));
        this.setChangeTypeStr(EnumUtil.nameOfVal(ChangeTypeEnums.values(),getChangeType()));
        this.setChangeValTypeStr(EnumUtil.nameOfVal(ChangeValTypeEnums.values(),getChangeValType()));
        this.setFindDomainStr(EnumUtil.nameOfVal(FindDomainEnums.values(),getFindDomain()));
        this.setFindPropStr(EnumUtil.nameOfVal(FindPropEnums.values(),getFindProp()));
        this.setCycleTypeStr(EnumUtil.nameOfVal(CycleTypeEnums.values(),getCycleType()));
        this.setOrderIdxStr(EnumUtil.nameOfVal(HitOrderEnums.values(),getOrderIdx()));
        this.setRefTargetStr(EnumUtil.nameOfVal(RefTargetEnums.values(),getRefTarget()));

        return this;
    }

}
